/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：SysUserRole仓储接口                                                   
*│　作    者：sys                                              
*│　创建时间：2020-11-06 14:41:01  
*│　说    明：代码生成器生成   
*└──────────────────────────────────────────────────────────────┘
*/
using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public interface ISysUserRoleRepository : IRepository<SysUserRoleEntity>
    {
        /// <summary>
        /// 查询账号相关角色
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<List<SysRoleEntity>> QueryRole(string userId);
        /// <summary>
        /// 查询相关用户的记录
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<int> DeleteUserId(string userId);

        Task<bool> ExistsRolesAsync(List<string> roleIds);
    }
}